import {api} from './request'

const requestApi = {
  queryPortNameList: `/common/queryPortNameList`, // 港口名称查询
  queryShipNameList: `/common/queryShipNameList`, // 船舶名称查询
  queryShipInfoList: `/ship/queryShipInfoList`, // 船舶列表查询
  queryShipRouteList: `/ship/queryShipRouteList`, // 航线列表查询
  queryShipVoyageList: `/ship/queryShipVoyageList`, // 航次列表查询
  delShipVoyageById: `/ship/delShipVoyageById`, // 删除航次
  addShipVoyage: `/ship/addShipVoyage`, // 新增航次
  getShipVoyageById: `/ship/getShipVoyageById`, // 查询航次详情
  getShipVoyageLogById: `/ship/getShipVoyageLogById`, // 查询航次详情-船舶状态
  remindReportLog: `/ship/remindReportLog`, // 查询航次详情-提醒上报
  queryShipOilPurchaseList: `/ship/queryShipOilPurchaseList`, // 采购入库列表查询
  getOilStatistics: `/ship/getOilStatistics`, // 油品库存统计查询
  editPurchaseInvoiceNo: `/ship/editPurchaseInvoiceNo`, // 修改采购发票
  queryShipOilOutList: `/ship/queryShipOilOutList`, // 出库/领料列表查询
  addShipOilStockIn: `/ship/addShipOilStockIn`, // 新增出库记录(加油)
  addShipOilPurchase: `/ship/addShipOilPurchase`, // 新增采购记录
  queryCustNameList: `/common/queryCustNameList`, // 结算对象名称查询
  addShipOilStockOut: `/ship/addShipOilStockOut`, // 新增出库记录(耗油)
  addShipInfo: `/ship/addShipInfo`, // 船舶新增
  changeShipRouteStatus: `/ship/changeShipRouteStatus`, // 修改航线状态
  getShipOwnerByNameLike: `/customer/getShipOwnerByNameLike`, // 根据名称获取船东信息
  getShipInfoById: `/ship/getShipInfoById`, // 船舶详情
  getShipOilStatistics: `/ship/getShipOilStatistics`, // 船舶详情-燃油管理-统计
  editShipInfo: `/ship/editShipInfo`, // 船舶修改
  addShipRoute: `/ship/addShipRoute`, // 新增航线
  getShipBench: `/ship/getShipBench`, // 工作台（船舶动态、油品库存、提醒）
  getShipBenchBanking: `/ship/getShipBenchBanking`, // 工作台（排名）
  addBillCost: `/ship/addBillCost`, // 船舶航次-费用信息新增
  queryVoyageContainerList: `/order/queryVoyageContainerList`, // 工作台（排名）
  updateCostRecordStatus: `/ship/updateCostRecordStatus`, // 航次详情-修改费用是否录入完成
  editBillCost: `/ship/editBillCost`, // 航次详情-费用信息修改
  readPlatformMessage: `/ship/readPlatformMessage`, // 消息阅读
}
export default requestApi

export const queryPortNameList = (data) => api(requestApi.queryPortNameList, data)
export const queryShipNameList = (data) => api(requestApi.queryShipNameList, data)
export const queryShipInfoList = (data) => api(requestApi.queryShipInfoList, data)
export const queryShipRouteList = (data) => api(requestApi.queryShipRouteList, data)
export const queryShipVoyageList = (data) => api(requestApi.queryShipVoyageList, data)
export const delShipVoyageById = (data) => api(requestApi.delShipVoyageById, data)
export const addShipVoyage = (data) => api(requestApi.addShipVoyage, data)
export const getShipVoyageById = (data) => api(requestApi.getShipVoyageById, data)
export const getShipVoyageLogById = (data) => api(requestApi.getShipVoyageLogById, data)
export const remindReportLog = (data) => api(requestApi.remindReportLog, data)
export const queryShipOilPurchaseList = (data) => api(requestApi.queryShipOilPurchaseList, data)
export const getOilStatistics = (data) => api(requestApi.getOilStatistics, data)
export const editPurchaseInvoiceNo = (data) => api(requestApi.editPurchaseInvoiceNo, data)
export const queryShipOilOutList = (data) => api(requestApi.queryShipOilOutList, data)
export const addShipOilStockIn = (data) => api(requestApi.addShipOilStockIn, data)
export const addShipOilPurchase = (data) => api(requestApi.addShipOilPurchase, data)
export const queryCustNameList = (data) => api(requestApi.queryCustNameList, data)
export const addShipOilStockOut = (data) => api(requestApi.addShipOilStockOut, data)
export const addShipInfo = (data) => api(requestApi.addShipInfo, data)
export const changeShipRouteStatus = (data) => api(requestApi.changeShipRouteStatus, data)
export const getShipOwnerByNameLike = (data) => api(requestApi.getShipOwnerByNameLike, data)
export const getShipInfoById = (data) => api(requestApi.getShipInfoById, data)
export const getShipOilStatistics = (data) => api(requestApi.getShipOilStatistics, data)
export const editShipInfo = (data) => api(requestApi.editShipInfo, data)
export const addShipRoute = (data) => api(requestApi.addShipRoute, data)
export const getShipBench = (data) => api(requestApi.getShipBench, data)
export const getShipBenchBanking = (data) => api(requestApi.getShipBenchBanking, data)
export const queryVoyageContainerList = (data) => api(requestApi.queryVoyageContainerList, data)
export const addBillCost = (data) => api(requestApi.addBillCost, data)
export const updateCostRecordStatus = (data) => api(requestApi.updateCostRecordStatus, data)
export const editBillCost = (data) => api(requestApi.editBillCost, data)
export const readPlatformMessage = (data) => api(requestApi.readPlatformMessage, data)
